import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { ServeStaticModule } from '@nestjs/serve-static';
import { join } from 'path';
// import config from './shared/config';
import { SharedModule } from './shared/shared.module';
import { AppController } from './app.controller';
import { OnlyofficeModule } from './onlyoffice/onlyoffice.module';
import { DocumentModule } from './document/document.module';
import { AppService } from './app.service';
import { WebProxyController } from './web-proxy/web-proxy.controller';
import { ScheduleModule } from '@nestjs/schedule';
import { FileMangerService } from './shared/file-manger/file-manger.service';

@Module({
  imports: [SharedModule, OnlyofficeModule, DocumentModule, ScheduleModule.forRoot()],
  controllers: [AppController, WebProxyController],
  providers: [AppService],
})
export class AppModule {}
